package com.hzw.saas.api.msg.query;

import java.util.List;
import javax.validation.constraints.NotBlank;

import com.hzw.saas.api.msg.bo.MsgActionBo;
import com.hzw.saas.api.msg.enums.MsgType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *  消息通用参数
 * </p>
 *
 * @author sonam
 * @since 2021/1/7 0:42
 */
@Data
public abstract class MsgQuery {

    @NotBlank(message = "消息内容不能为空")
    @ApiModelProperty(value = "消息内容", required = true)
    private String msg;

    /**
     * 消息业务
     */
    @ApiModelProperty(hidden = true)
    private List<MsgActionBo> msgActionDtoList;

    @ApiModelProperty(hidden = true)
    public abstract MsgType getMsgType();

}
